@extends('layouts.master')

@section('title')
    物流模块——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
    <link href="/resource/css/bootstrap-datetimepicker.css" rel="stylesheet">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/bootstrap-datetimepicker.min.js"></script>
    <script src="/resource/js/bootstrap-datetimepicker.zh-CN.js"></script>

@stop


@section('content')

    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.service_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 物流线路
            </div>
            <div class="contentNav">
              <ul>
                <li>其他</li>
                <li class="btn btn-default active"><a href="/show_logistics">列表</a></li>
                <li class="btn btn-default"><a href="/add_logistics">新增</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember">
              <form class="form-inline">
                <div class="form-group">
                  <label>出发地</label>
                  <input type="text" class="form-control" placeholder="">
                </div>
                <div class="form-group">
                  <label>目的地</label>
                  <input type="text" class="form-control" placeholder="">
                </div>
                <div class="form-group">
                  <label>发车时间</label>
                  <div class="input-group date form_datetime col-md-5" data-date="1979-09-16T05:25:07Z" data-date-format="dd MM yyyy - HH:ii p" data-link-field="dtp_input1">
                      <input class="form-control" size="16" type="text" value="" readonly>
                      <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                  </div>
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
              </form>
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th></th>
                    <th>出发地</th>
                    <th>目的地</th>
                    <th>历时</th>
                    <th>车型</th>
                    <th>车长</th>
                    <th>载重</th>
                    <th>发车时间</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                </tbody>
                  <tbody>
                  @foreach($logistics as $k => $logistic)
                      <tr>
                          <td><input type="checkbox" name="demo"></td>
                          <td>{{ $logistic->departure }}</td>
                          <td>{{ $logistic->destination }}</td>
                          <td>{{ $logistic->take_time }}</td>
                          <td>{{ $logistic->model_type }}</td>
                          <td>{{ $logistic->truck_length }}</td>
                          <td>{{ $logistic->truck_weight }}</td>
                          <td>{{ $logistic->spec_time }}</td>
                          <td><a href="/edit_logistics?wl_id={{ $logistic->wl_id }}">编辑</a> | <a href="/delete_logistics?wl_id={{ $logistic->wl_id }}">删除</a></td>
                      </tr>
                  @endforeach
                  </tbody>
              </table>
            </div>
            {{ $logistics->links() }}
        </div>
    </div>
</div>
@stop
